<?php

include_once "Person.php";

$xh1 = new Person("小黑",3);//值的引用
//$xh2 = $xh1;
//$xh2->name = "大黑";
//echo "<br>";
//echo $xh1->name;//大黑


$xh3 = clone $xh1;//克隆 和 普通数据 赋值的区别
$xh3-> name = "大黑";
echo "<br>";
echo $xh1->name;//小黑
echo "<br>";

